package com.woniuxy.personal.core.mapper;

import com.woniuxy.personal.core.model.PlUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author gmx
 * @since 2021-06-29
 */
public interface PlUserMapper extends BaseMapper<PlUser> {

    @Select("select score from pl_user where username = #{username}")
    Integer selectScore(String username);

    @Select("select * from pl_user where username=#{username}")
    PlUser selectUser(String username);
}
